const db = require('../db');

module.exports = db.defineModel('qiujie_studio', {
  "name": {
    "type": db.STRING(100),
    "allowNull": false,    
    "unique": true
  },
  "desc": {
    "type": db.STRING(200),
    "allowNull": true,
  },
  "email": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "phone": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "wechat": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "qq": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "website": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "hits": {
    "type": db.INTEGER(32),
    "allowNull": false,
    "defaultValue": 0
  },
  "studioBanner": {
    "type": db.STRING(100),
    "allowNull": true,
  },
  "studioSliderPhotos": {
    "type": db.JSON,
    "allowNull": true,
  },
  "studioContentPhotos": {
    "type": db.JSON,
    "allowNull": true,
  }
});
